home *** CD-ROM | disk | FTP | other *** search
- ELF_VERSION(3E) Last changed: 10-13-98
-
-
- NNAAMMEE
- eellff__vveerrssiioonn - Coordinate ELF library and application versions
-
- SSYYNNOOPPSSIISS
- cccc [_f_l_a_g ...] _f_i_l_e ... --lleellff [_l_i_b_r_a_r_y ...]
-
- ##iinncclluuddee <<lliibbeellff..hh>>
-
- uunnssiiggnneedd eellff__vveerrssiioonn((uunnssiiggnneedd vveerr));;
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- IRIX systems
-
- DDEESSCCRRIIPPTTIIOONN
- As eellff(3E) explains, the program, the library, and an object file have
- independent notions of the latest ELF version. eellff__vveerrssiioonn lets a
- program determine the ELF library's iinntteerrnnaall vveerrssiioonn. It further lets
- the program specify what memory types it uses by giving its own
- wwoorrkkiinngg vveerrssiioonn, vveerr, to the library. Every program that uses the ELF
- library must coordinate versions.
-
- The header file <<lliibbeellff..hh>> supplies the version to the program with
- the macro EEVV__CCUURRRREENNTT. If the library's internal version (the highest
- version known to the library) is lower than that known by the program
- itself, the library may lack semantic knowledge assumed by the
- program. Accordingly, eellff__vveerrssiioonn will not accept a working version
- unknown to the library.
-
- Passing vveerr equal to EEVV__NNOONNEE causes eellff__vveerrssiioonn to return the
- library's internal version, without altering the working version. If
- vveerr is a version known to the library, eellff__vveerrssiioonn returns the
- previous (or initial) working version number. Otherwise, the working
- version remains unchanged and eellff__vveerrssiioonn returns EEVV__NNOONNEE.
-
- NNOOTTEESS
- The working version should be the same for all operations on a
- particular elf descriptor. Changing the version between operations on
- a descriptor will probably not give the expected results.
-
- EEXXAAMMPPLLEESS
- The following excerpt from an application program protects itself from
- using an older library.
-
- if (elf_version(EV_CURRENT) == EV_NONE)
- {
- /* library out of date */
- /* recover from error */
- }
-
- SSEEEE AALLSSOO
- eellff(3E), eellff__bbeeggiinn(3E), eellff__xxllaattee(3E)
-
- This man page is available only online.
-
-